<!DOCTYPE html>

<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />

    <style>
        body { background-color: #F7F7F7; }
        /* See https://github.com/nprapps/pym.js/issues/83 */
        h2 { margin-top: 0; }
    </style>
</head>
<body>
    <div>
        <h2>Scroll links</h2>

        <p>These links are inside the iframe, but will scroll the parent:</p>

        <ul>
            <li><a href="javascript:pymChild.scrollParentTo('about');">About</a></li>
            <li><a href="javascript:pymChild.scrollParentTo('download');">Download</a></li>
            <li><a href="javascript:pymChild.scrollParentTo('requirements');">Requirements</a></li>
        </ul>

        <a href="javascript:pymChild.navigateParentTo('https://github.com/nprapps/pym.js');">Go to Github!</a>
    </div>

    <script src="../../src/pym.js" type="text/javascript"></script>
    <script>var pymChild = new pym.Child();</script>
</body>
</html>
